package C03.Example01;
class Student {
    String name;        //声明姓名属性
    void read () {
        System.out.println("大家好，我是" + name);
    }
}
public class Example01 {
    public static void main(String[] args) {
        Student stu1 = new Student();       //创建第一个Student对象
        Student stu2 = new Student();       //创建第二个Student对象
        stu1.name = "小明";                  //为sut1对象的name属性赋值
        stu1.read();                        //调用对象的方法
        stu2.name = "小华";
        stu2.read();
    }
}

